/**
* @Author: Rain
* @Date: 2023/10/08 16:49:56
* @LastEditTime: 2023/10/18 22:28:10
* @Description: Do Something
 */
import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'api/courseClass',
    method: 'post',
    data
  })
}

export function del(ids) {
  return request({
    url: 'api/courseClass/',
    method: 'delete',
    data: ids
  })
}

export function edit(data) {
  return request({
    url: 'api/courseClass',
    method: 'put',
    data
  })
}

export function bindStudent(data) {
  return request({
    url: 'api/courseClassStudent/batchAdd',
    method: 'post',
    data
  })
}

export function getStudent(data) {
  return request({
    url: 'api/courseClassStudent',
    method: 'get',
    params: data
  })
}
export default { add, edit, del, bindStudent }
